/* 
 * @moduleName: index.js 
 * @Desc: 入口文件
 * @Author: djkloop 
 * @Date: 2017-09-23 21:06:00 
 * @Last Modified by: djkloop
 * @Last Modified time: 2017-09-23 23:04:54
 */
// 使用layui的加载方式导出模块
layui.define(['jquery', '_xbzxTab'],function(exports) {
  'use strict';
  var MOD_NAME = 'index'
  ,$ = layui.jquery
  ,xbzxTab = layui._xbzxTab
  // 给外部提供的接口
  ,index = {
    config:{}, // 加载配置项
    set: function(options) {
      var that = this;
      that.config = $.extend({}, that.config, options);
      return that;
    },
    init: function() {
      var that = this
      ,options = that.config;
      // 页面加载方式为page 当前版本不支持iframe
      if (options.type === 'page') {
        xbzxTab.set(options).render();
      }     
    }
  }
  // 导出模块
  exports(MOD_NAME, index)
});